﻿//
// BooPolyLineGraph.xaml.h
// Declaration of the BooPolyLineGraph class
//

#pragma once

#include "BooPolyLineGraph.g.h"

namespace PolyLineGraph2
{
	ref class PolyLineGraphGrid;
	ref class PolyLineGraphEditPanel;
	ref class PolyLineGraphData;
}
namespace PolyLineGraph2
{
	[Windows::Foundation::Metadata::WebHostHidden]
	public ref class BooPolyLineGraph sealed
	{
	public:
		BooPolyLineGraph();
		void CreateGraph();
		void RePaint(Platform::Object^ e);
		

	private:
		PolyLineGraphGrid^ graphGrids;
		PolyLineGraphEditPanel^ editPanel;
		Windows::UI::Xaml::Controls::StackPanel^ graphPanel;
		//Windows::UI::Xaml::Controls::Primitives::Popup^ editPopup;
		PolyLineGraphData^ graphDatas;  //value Info

	private:
		void InitializeLineGraphComponent();
		void CreateDefaultGraph();
		
		void UpdateGraphGrid();

		void EditButtonClicked(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
	};



}
